package xyz.ljcc.ccmt.model.records;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

@Entity
@Table(name="DOCS_EVAL_REPORT_DETAIL")
public class DocsEvalReportDetail implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="REC_ID")
	private Integer recId;
	
	@Column(name="ITEM_NAME")
	private String itemName;
	
	@Column(name="ITEM_VALUE")
	private String itemValue;
	
	private String creator;
	
	@Column(name="CREATOR_UNIT")
	private String creatorUnit;
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm") 
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;
	
	private String updater;
	
	@Column(name="UPDATER_UNIT")
	private String updaterUnit;
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm") 
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME")
	private Date updateTime;
	
	@Column(name="ENABLE_VALUE")
	private String enableValue = "Y";
	
	@ManyToOne
	@JoinColumn(name="REPORT_ID")
	private DocsEvalReportRec docsEvalReportRec;

	public Integer getRecId() {
		return recId;
	}

	public void setRecId(Integer recId) {
		this.recId = recId;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getItemValue() {
		return itemValue;
	}

	public void setItemValue(String itemValue) {
		this.itemValue = itemValue;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getCreatorUnit() {
		return creatorUnit;
	}

	public void setCreatorUnit(String creatorUnit) {
		this.creatorUnit = creatorUnit;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdater() {
		return updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}

	public String getUpdaterUnit() {
		return updaterUnit;
	}

	public void setUpdaterUnit(String updaterUnit) {
		this.updaterUnit = updaterUnit;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getEnableValue() {
		return enableValue;
	}

	public void setEnableValue(String enableValue) {
		this.enableValue = enableValue;
	}

	public DocsEvalReportRec getDocsEvalReportRec() {
		return docsEvalReportRec;
	}

	public void setDocsEvalReportRec(DocsEvalReportRec docsEvalReportRec) {
		this.docsEvalReportRec = docsEvalReportRec;
	}
	
}
